home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / world-wars.swf / scripts / __Packages / classes / Debug.as next >
Encoding:
Text File  |  2011-09-19  |  628 b   |  23 lines

  1. class classes.Debug
  2. {
  3.    var _stage;
  4.    var removeMovieClip;
  5.    function Debug(stage)
  6.    {
  7.       this._stage = stage;
  8.    }
  9.    function showError(com)
  10.    {
  11.       this._stage.debuger.removeMovieClip();
  12.       var _loc2_ = this._stage.attachMovie("debuger","debuger",this._stage.getNextHighestDepth(),{_x:40,_y:40});
  13.       _loc2_.message.autoSize = true;
  14.       _loc2_.message.htmlText = "<b>" + com + "</b>";
  15.       _loc2_.bg._width = _loc2_.message._width + 30;
  16.       _loc2_.bg._height = _loc2_.message._height + 8;
  17.       _loc2_.onRollOver = function()
  18.       {
  19.          this.removeMovieClip();
  20.       };
  21.    }
  22. }
  23.